﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using Orchard.ContentManagement;
using Orchard.ContentManagement.Records;

namespace Barry.Slide.Models
{
    public class SlideRecord : ContentPartRecord
    {
        public virtual double Latitude { get; set; }
        public virtual double Longitude { get; set; }

        public virtual string URLLists { set; get; }
    }

    public class SlidePart : ContentPart<SlideRecord>
    {
        [Required]
        public double Latitude
        {
            get { return Record.Latitude; }
            set { Record.Latitude = value; }
        }
        [Required]
        public double Longitude
        {
            get { return Record.Longitude; }
            set { Record.Longitude = value; }
        }

        [Required]
        public string URLLists
        {
            set { Record.URLLists = value; }
            get { return Record.URLLists; }
        }
    }
}